package com.rt.schedulebase.dto.esb.schedule.resquest;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * @author ljy aka ryan
 * @date 2022/6/15 15:59
 * @description TODO
 */
//@Data
@Getter
@Setter
public class SendMsgBase<T> {

    @JacksonXmlProperty(isAttribute = true)
    private String id;

    @JacksonXmlProperty(isAttribute = true)
    private String lastUpdate;

    @JacksonXmlProperty(isAttribute = true)
    private String action;

    /**
     * 数据明细
     */
    @JacksonXmlElementWrapper(localName = "DETAILS")
    @JacksonXmlProperty(localName = "DETAIL")
    private List<T> detail;

}
